import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import * as paths from "path";

// https://vitejs.dev/config/
export default defineConfig({
    base: './',
    plugins: [vue()],
    resolve: {
        //设置路径别名
        alias: {
            '@': paths.resolve(__dirname, './src'),
            '*': paths.resolve('')
        },
    },
    build: {},

    entry: {},
    esbuild: {
        jsxFactory: 'h',
        jsxFragment: 'Fragment',
        jsxInject: "import { h } from 'vue';"
    },

})
